using System;
using System.Collections;

namespace Com.CMS263.PO
{
	#region ProdType

	/// <summary>
	/// ProdType object for NHibernate mapped table 'Prod_Type'.
	/// </summary>
	public class ProdType
	{
		#region Member Variables
		
		protected int _id;
		protected string _typeName;
		protected bool _isUse;

		#endregion

		#region Constructors

		public ProdType() { }

		public ProdType( string typeName, bool isUse )
		{
			this._typeName = typeName;
			this._isUse = isUse;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public  virtual string TypeName
		{
			get { return _typeName; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for TypeName", value, value.ToString());
				_typeName = value;
			}
		}

		public  virtual bool IsUse
		{
			get { return _isUse; }
			set { _isUse = value; }
		}

		

		#endregion
	}
	#endregion
}